package com.seata.demo.common.config;

import com.seata.demo.common.interceptor.SeataFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Description: </p>
 *
 * @author zg
 * @version v1.0.0
 * @since 2024/1/30
 **/
/*@Configuration
public class FilterConfig {

    @Bean
    public FilterRegistrationBean webAuthFilterRegistration() {
        FilterRegistrationBean registration = new FilterRegistrationBean();
        registration.setFilter(seataFilter());
        registration.setName("seataFilter");
        registration.addUrlPatterns("/biz/*","/storage/*", "/account/*");
        //registration.addInitParameter("excludeUrls", "/login");
        registration.setOrder(0);
        return registration;
    }

    @Bean
    public SeataFilter seataFilter() {
        return new SeataFilter();
    }

}*/
